<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>学校资助人员管理</title>
		<link rel="stylesheet" type="text/css" href="asserts/bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
	
		<!-- js插件 -->
		<script src="js/jquery-3.2.1.min.js"></script>
		<script src="asserts/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
        <link rel="stylesheet" type="text/css" href="asserts/bootstrapValidate/css/bootstrapValidator.min.css"/>
 	   <script src="asserts/bootstrapValidate/js/bootstrapValidator.min.js"></script>
	
	</head>
	<body>
			<!-- 内容展示区 -->
			<div >
					<!-- 导航 -->
					<ol class="breadcrumb">
						<li><i class="fa fa-comment"></i> 学校资助人员管理</li>
					</ol>
					<div class="container-fluid">
						<!-- 	内容面板 -->
						<div class="panel panel-default">
							<!-- 控制按钮 -->
							<div class="panel-heading">
									<div class="btn-group">
										<button class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span>添加</button>
										<button class="btn btn-success"><span class="glyphicon glyphicon-import"></span>导入excel</button>
										<button class="btn btn-info"><span class="glyphicon glyphicon-export"></span>导出excel模板</button>
									</div>
							</div><!-- 控制按钮  end-->
							<div class="panel-body">
								<table class="table table-bordered table-striped">
									<tr>
										<th width="5%"><input type="checkbox" name="" id="selectAll" /></th>
										<th width="10%">名称</th>
										<th width="10%">学籍</th>
										<th width="10%">身份证号</th>
										<th width="10%">性别</th>
										<th width="10%">出生日期</th>
										<th width="5%">年份</th>
										<th width="5%">学年</th>
										<th width="5%">学期</th>
										<th width="5%">资助名称</th>
										<th width="5%">资助金额(元)</th>
										<th width="5%">发放日期</th>
										<th width="5%">发放人</th>
									
										
										<th width="30%">操作</th>
									</tr>
									<!-- 数据绑定 -->
									<tr>
										<td><input type="checkbox" name="" class="eid" id="" /></td>
										<td width="10%">张三</td>
										<td width="10%">学籍</td>
										<td width="10%">身份证号</td>
										<td width="10%">性别</td>
										<td width="10%">出生日期</td>
										<td width="5%">年份</td>
										<td width="5%">学年</td>
										<td width="5%">学期</td>
										<td width="5%">资助名称</td>
										<td width="5%">资助金额(元)</td>
										<td width="5%">发放日期</td>
										<td>发放人</td>
										<td>
											<button type="button" class="btn btn-primary" 
												data-toggle="modal" data-target="#mymodal" >
												 <span class="glyphicon glyphicon-edit"></span> 修改</button>
											 <button type="button" class="btn btn-danger"> 
											 	<span class="glyphicon glyphicon-remove"></span> 删除</button>
											  <button type="button" class="btn btn-info"> 
											 	<span class="glyphicon glyphicon-list"></span> 详情</button>
										</td>
									</tr>
											
									 
										
									<!-- 	数据绑定 end -->
								</table>
								<!-- 	分页 -->
									<nav class="text-center">
									<ul class="pagination pagination-sm">
										<li class="disabled"><a href="javascript:void(0)">&laquo;</a></li>
										<li class="active"><a href="">1</a></li>
										<li><a href="">2</a></li>
										<li><a href="">3</a></li>
										<li><a href="">...</a></li>
										<li><a href="">49</a></li>
										<li><a href="">50</a></li>
										<li><a href="">&raquo;</a></li>
									</ul>
									</nav>
							</div>
						</div><!-- 内容面板 end -->
					</div>
			</div><!-- 	内容展示区 end-->
	 
		
		<!-- 弹层组件 添加标签 -->
		<div class="modal fade" id="mymodal">
			<div class="modal-dialog">
				<div class="modal-content">
					<form action=""  class="form-horizontal">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"><span>&times;</span></button>
							<h4 class="modal-title" id="mylabel">录入学校资助信息</h4>
						</div>
						<div class="modal-body">
							  
							  <!-- 学校-->
								<div class="form-group">
									<label class="control-label col-md-3">学生名称：</label>
									<div class="col-md-8">
										<input type="text" name="name" placeholder="请输入名称" class="form-control"  />
									</div>
								</div>
								  <!-- 学校-->
								<div class="form-group">
									<label class="control-label col-md-3">学籍号：</label>
									<div class="col-md-8">
										<input type="text" name="stucode" placeholder="请输入学籍号" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">学校：</label>
									<div class="col-md-8">
										<select name="schid" class="form-control">
											<option value="">请选择</option>
											 
										</select> 
									</div>
								</div>
								 
							  	<div class="form-group">
									<label class="control-label col-md-3">身份证号：</label>
									<div class="col-md-8">
										<input type="text" name="idcard" placeholder="请输入学年（如  2019-2020）" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">性别：</label>
									<div class="col-md-8">
										<div class="radio">
										  <label>
										    <input type="radio" name="sex"   value="男" >
										    男
										  </label>
										   <label>
										    <input type="radio" name="sex"   value="女" >
										    女
										  </label>
										</div>
									 
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">出生日期：</label>
									<div class="col-md-8">
										<input type="text" name="birthday" placeholder="请输入出生日期（2009-10-01）" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">年份：</label>
									<div class="col-md-8">
										<input type="text" name="year" placeholder="请输入年份" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">学年：</label>
									<div class="col-md-8">
										<input type="text" name="studyyear" placeholder="请输入学年" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">学期：</label>
									<div class="col-md-8">
										<input type="text" name="term" placeholder="请输入学期" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">资助名称：</label>
									<div class="col-md-8">
										<input type="text" name="subname" placeholder="请输入资助名称" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">资助金额：</label>
									<div class="col-md-8">
										<input type="text" name="subamount" placeholder="请输入资助金额（元）" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">发放日期：</label>
									<div class="col-md-8">
										<input type="text" name="providedate" placeholder="请输入发放日期（如  2019-10-01）" class="form-control"  />
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">发放人：</label>
									<div class="col-md-8">
										<input type="text" name="provide" placeholder="请输入发放人" class="form-control"  />
									</div>
								</div>
						</div>
						<div class="modal-footer">
							<button class="btn btn-danger" type="button">关闭</button>
							<button class="btn btn-primary" type="submit">录入</button>
						</div>
					</form>
				</div>
			</div>
		</div><!-- 弹层组件 添加标签 end -->
	 
	</body>
</html>
<script>
	 $(function () {
	  
        $('form').bootstrapValidator({
　　　　　　　　message: 'This value is not valid',
            　feedbackIcons: {
                　　　　　　　　valid: 'glyphicon glyphicon-ok',
                　　　　　　　　invalid: 'glyphicon glyphicon-remove',
                　　　　　　　　validating: 'glyphicon glyphicon-refresh'
            　　　　　　　　   },
            fields: {
                name: {
                    message: '用户名验证失败',
                    validators: {
                        notEmpty: {
                            message: '姓名不能为空'
                        }
                    }
                },
                stucode: {
                    validators: {
                        notEmpty: {
                            message: '学籍号不能为空'
                        }
                    }
                },
                idcard: {
                    validators: {
                        notEmpty: {
                            message: '身份证号不能为空'
                        }
                    }
                },
                sex: {
                    validators: {
                        notEmpty: {
                            message: '性别不能为空'
                        }
                    }
                } 
                ,
                subname: {
                    validators: {
                        notEmpty: {
                            message: '资助名称不能为空'
                        }
                    }
                } 
                ,
                subamount: {
                    validators: {
                        notEmpty: {
                            message: '资助金额不能为空'
                        }
                    }
                } 
            } ,
            submitHandler: function (validator, form, submitButton) {
              // alert("submit");
            }
        });
    });
	
</script>